package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SuperOrderAddressMapper;
import com.ruoyi.system.domain.SuperOrderAddress;
import com.ruoyi.system.service.ISuperOrderAddressService;

/**
 * 订单地址中间表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
@Service
public class SuperOrderAddressServiceImpl implements ISuperOrderAddressService 
{
    @Autowired
    private SuperOrderAddressMapper superOrderAddressMapper;

    /**
     * 查询订单地址中间表
     * 
     * @param id 订单地址中间表主键
     * @return 订单地址中间表
     */
    @Override
    public SuperOrderAddress selectSuperOrderAddressById(Long id)
    {
        return superOrderAddressMapper.selectSuperOrderAddressById(id);
    }

    /**
     * 查询订单地址中间表列表
     * 
     * @param superOrderAddress 订单地址中间表
     * @return 订单地址中间表
     */
    @Override
    public List<SuperOrderAddress> selectSuperOrderAddressList(SuperOrderAddress superOrderAddress)
    {
        return superOrderAddressMapper.selectSuperOrderAddressList(superOrderAddress);
    }

    /**
     * 新增订单地址中间表
     * 
     * @param superOrderAddress 订单地址中间表
     * @return 结果
     */
    @Override
    public int insertSuperOrderAddress(SuperOrderAddress superOrderAddress)
    {
        return superOrderAddressMapper.insertSuperOrderAddress(superOrderAddress);
    }

    /**
     * 修改订单地址中间表
     * 
     * @param superOrderAddress 订单地址中间表
     * @return 结果
     */
    @Override
    public int updateSuperOrderAddress(SuperOrderAddress superOrderAddress)
    {
        return superOrderAddressMapper.updateSuperOrderAddress(superOrderAddress);
    }

    /**
     * 批量删除订单地址中间表
     * 
     * @param ids 需要删除的订单地址中间表主键
     * @return 结果
     */
    @Override
    public int deleteSuperOrderAddressByIds(Long[] ids)
    {
        return superOrderAddressMapper.deleteSuperOrderAddressByIds(ids);
    }

    /**
     * 删除订单地址中间表信息
     * 
     * @param id 订单地址中间表主键
     * @return 结果
     */
    @Override
    public int deleteSuperOrderAddressById(Long id)
    {
        return superOrderAddressMapper.deleteSuperOrderAddressById(id);
    }
}
